<#if dirName?trim?length gt 1>
	package ${packageName}.module.${dirName}
<#else>
	package ${packageName}.module
</#if>

import ${packageName}.R
import cn.ubest.mvvmcore.base.BaseFragment
import ${packageName}.databinding.Fragment${className}Binding
import ${packageName}.vm.${className}VM
import android.os.Bundle
import android.view.View

class ${className}Fragment : BaseFragment<${className}VM,Fragment${className}Binding>(){

	companion object {
        fun newInstance():${className}Fragment {
            val fragment = ${className}Fragment()
			return fragment
        }
    }

    override fun initLayout():Int {
	<#if generateLayout>
		return R.layout.fragment_${className?replace('([a-z])([A-Z]+)','$1_$2','r')?lower_case};
		<#else>
		return 0;
	</#if> 
    }
	
	override fun initData(arguments: Bundle) {
        
    }
	
    override fun initView(view: View) {

    }
	
	override fun loadData() {
        
    }
}